#ifndef SELFCHECKFAIL_H
#define SELFCHECKFAIL_H

#include <QDialog>
#include <QPaintEvent>
#include <QPainter>
#include "blldataflow.h"
#include "bllcontroller.h"

namespace Ui {
class SelfCheckFail;
}

class SelfCheckFail : public QDialog
{
    Q_OBJECT

public:
    explicit SelfCheckFail(QWidget *parent = nullptr);
    ~SelfCheckFail();
    void show(const QString &error);

private slots:
    void on_btnOK_pressed();
    void on_btnOK_released();
    void retranslateUiSlot();
    void onTimeout();
    void show() {}

protected:
    void paintEvent(QPaintEvent *event);

private:
    Ui::SelfCheckFail *ui;
    BllDataFlow * bdf;
    BllController * bCtrl;
    QTimer m_timer;
    bool m_shutdown;
};

#endif // SELFCHECKFAIL_H
